Check for GraphicsExpose too in expose_serial_predicate
authorAlexander Larsson <alexl@redhat.com>
Thu, 13 Aug 2009 11:07:13 +0000 (13:07 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 13 Aug 2009 12:46:01 +0000 (14:46 +0200)
GraphicsExpose cause invalidation too, so we need to look for such
events in addition to normal Expose events.

gdk/x11/gdkgeometry-x11.c

index 50d754886bc0108c5dd3ae28d36416f663d32a2c..b00ef0558f881972d5e256a7afdeee534fb1d328 100644 (file)
@@ -108,7 +108,7 @@ expose_serial_predicate (Display *xdisplay,
 {
   gulong *serial = (gulong *)arg;
 
-  if (xev->xany.type == Expose)
+  if (xev->xany.type == Expose || xev->xany.type == GraphicsExpose)
     *serial = MIN (*serial, xev->xany.serial);
 
   return False;